import request from '@/utils/request'

// 查询商机收款详情列表
export function listCollectDetails(query) {
  return request({
    url: '/crm/collectDetails/list',
    method: 'get',
    params: query
  })
}

// 查询商机收款详情详细
export function getCollectDetails(collectDetailsId) {
  return request({
    url: '/crm/collectDetails/' + collectDetailsId,
    method: 'get'
  })
}

// 新增商机收款详情
export function addCollectDetails(data) {
  return request({
    url: '/crm/collectDetails',
    method: 'post',
    data: data
  })
}

// 修改商机收款详情
export function updateCollectDetails(data) {
  return request({
    url: '/crm/collectDetails',
    method: 'put',
    data: data
  })
}

// 删除商机收款详情
export function delCollectDetails(collectDetailsId) {
  return request({
    url: '/crm/collectDetails/' + collectDetailsId,
    method: 'delete'
  })
}
